<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Sncode extends Model
{
    //
    public function user(){
        return $this->hasOne(User::class,'id','user_id');
    }

    public function batch(){
        return $this->hasOne(Batch::class,'id','batch_id');
    }
}
